package client;

import java.rmi.RemoteException;

import ws.BanqueServiceProxy;
import ws.Compte;

public class ClientJWS {

	public static void main(String[] args) throws RemoteException {

		BanqueServiceProxy proxy = new BanqueServiceProxy();
		System.out.println(proxy.conversionEuroDH(90));
		System.out.println(proxy.test());
		System.out.println();

		Compte c = proxy.consulterCompte(1);
		System.out.println("code=" + c.getCode() + ", solde=" + c.getSolde());
		System.out.println();

		Compte[] comptes = proxy.listeComptes();
		for (Compte cc : comptes) {
			System.out.println("code=" + cc.getCode() + ", solde="
					+ cc.getSolde());
		}
	}
}
